home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / PInterfaces / CMAcceleration.p < prev    next >
Encoding:
Text File  |  1995-04-18  |  4.3 KB  |  142 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMAcceleration.p
  3.  
  4.      Contains:    ColorSync 2.0 Acceleration Component Interfaces
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMAcceleration;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMACCELERATION__}
  30. {$SETC __CMACCELERATION__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMAccelerationIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __MEMORY__}
  38. {$I Memory.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    MixedMode.p                                                    }
  43.  
  44. {$IFC UNDEFINED __COMPONENTS__}
  45. {$I Components.p}
  46. {$ENDC}
  47.  
  48. {$IFC UNDEFINED __CMAPPLICATION__}
  49. {$I CMApplication.p}
  50. {$ENDC}
  51. {    Quickdraw.p                                                    }
  52. {        QuickdrawText.p                                            }
  53. {    Files.p                                                        }
  54. {        OSUtils.p                                                }
  55. {    Printing.p                                                    }
  56. {        Errors.p                                                }
  57. {        Dialogs.p                                                }
  58. {            Windows.p                                            }
  59. {                Events.p                                        }
  60. {                Controls.p                                        }
  61. {                    Menus.p                                        }
  62. {            TextEdit.p                                            }
  63. {    CMICCProfile.p                                                }
  64.  
  65. {$PUSH}
  66. {$ALIGN MAC68K}
  67. {$LibExport+}
  68.  
  69. CONST
  70.     cmAccelerationInterfaceVersion = 1;
  71.  
  72. {–––––––––––––––––––––––––––––––––––––– Component Type}
  73.     cmAccelerationComponentType    = 'csac';
  74.  
  75. {–––––––––––––––––––––––––––––––––––––– Required Component function selectors}
  76.     cmLoadTables                = 0;
  77.     cmCalculateData                = 1;
  78.  
  79. {–––––––––––––––––––––––––––––––––––––– table data for acceleration component}
  80.  
  81. TYPE
  82.     CMAccelerationTableData = RECORD
  83.         inputLutEntryCount:        LONGINT;                                { count of entries for input lut for one dimension}
  84.         inputLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 16 for WORD )}
  85.         inputLut:                Handle;                                    { handle to input lut}
  86.         outputLutEntryCount:    LONGINT;                                { count of entries for output lut for one dimension    }
  87.         outputLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 8 for BYTE )}
  88.         outputLut:                Handle;                                    { handle to output lut}
  89.         colorLutInDim:            LONGINT;                                { input dimension  ( e.g. 3 for LAB ; 4 for CMYK )}
  90.         colorLutOutDim:            LONGINT;                                { output dimension ( e.g. 3 for LAB ; 4 for CMYK )}
  91.         colorLutGridPoints:        LONGINT;                                { count of gridpoints for color lut ( for one Dimension )    }
  92.         colorLutWordSize:        LONGINT;                                { count of bits of each entry ( e.g. 8 for BYTE )}
  93.         colorLut:                Handle;                                    { handle to color lut}
  94.         inputColorSpace:        CMBitmapColorSpace;                        { packing info for input}
  95.         outputColorSpace:        CMBitmapColorSpace;                        { packing info for output}
  96.         userData:                Ptr;
  97.         reserved1:                LONGINT;
  98.         reserved2:                LONGINT;
  99.         reserved3:                LONGINT;
  100.         reserved4:                LONGINT;
  101.         reserved5:                LONGINT;
  102.     END;
  103.  
  104.     CMAccelerationTableDataPtr = ^CMAccelerationTableData;
  105.     CMAccelerationTableDataHdl = ^CMAccelerationTableDataPtr;
  106.  
  107. {–––––––––––––––––––––––––––––––––––––– calc data for acceleration component}
  108.     CMAccelerationCalcData = RECORD
  109.         pixelCount:                LONGINT;                                { count of input pixels}
  110.         inputData:                Ptr;                                    { input array}
  111.         outputData:                Ptr;                                    { output array}
  112.         reserved1:                LONGINT;
  113.         reserved2:                LONGINT;
  114.     END;
  115.  
  116.     CMAccelerationCalcDataPtr = ^CMAccelerationCalcData;
  117.     CMAccelerationCalcDataHdl = ^CMAccelerationCalcDataPtr;
  118.  
  119. {————————————————————————————————————————————————————————————————————————————————————————————————}
  120. {                A c c e l e r a t i o n   C o m p o n e n t   I n t e r f a c e s}
  121. {————————————————————————————————————————————————————————————————————————————————————————————————}
  122.  
  123. FUNCTION CMAccelerationLoadTables(CMSession: ComponentInstance; tableData: CMAccelerationTableDataPtr): CMError;
  124.     {$IFC NOT GENERATINGCFM}
  125.     INLINE $2F3C, $0004, $0000, $7000, $A82A;
  126.     {$ENDC}
  127. FUNCTION CMAccelerationCalculateData(CMSession: ComponentInstance; calcData: CMAccelerationCalcDataPtr): CMError;
  128.     {$IFC NOT GENERATINGCFM}
  129.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  130.     {$ENDC}
  131.  
  132. {$ALIGN RESET}
  133. {$POP}
  134.  
  135. {$SETC UsingIncludes := CMAccelerationIncludes}
  136.  
  137. {$ENDC} {__CMACCELERATION__}
  138.  
  139. {$IFC NOT UsingIncludes}
  140.  END.
  141. {$ENDC}
  142.